package chat.fragments;

import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;

import com.whu.zj.R;

//import chat.views.adapters.FriendAdapter;

/**
 * 与分组相关的操作
 * Created by 凯 on 2015/11/18.
 */
public class ClassifyRelatedFragment extends DialogFragment{

    // 分组信息
//    FriendAdapter.FriendModel.ClassifyModel model;
//
//    // view delete
//    View v_delete;
//
//    public void setModel(FriendAdapter.FriendModel.ClassifyModel model) {
//        this.model = model;
//    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//        return super.onCreateView(inflater, container, savedInstanceState);
        getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);
        View view = inflater.inflate(R.layout.fragment_classifyrelated,null);
        initview(view);
        return view;
    }

    // 初始化
    private void initview(View view) {
//        v_delete = view.findViewById(R.id.id_v_delete);
//        v_delete.setOnClickListener(itemclick);

    }

    View.OnClickListener itemclick = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
//            if (v == v_delete)
//            {
////                DeleteClass.Upload upload = new DeleteClass.Upload();
////                upload.setUserId(UserInfo.getUserID());
////                upload.setClassId(model.getClassify().getId() + "");
//
////                new DeleteClass(null,upload).delete();
////                dismiss();
//            }
        }
    };
}
